<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<style>
   
    div{
        height: 50px; 
        margin: 10px 0;
         padding: 5px;
    }
    #id{
        margin-top: 40px;
        height: 220px;
        border: 1px solid blue;
       
    }
    .onw{
        /* height: 50px; */
        background-color: brown;
        border: 1px dashed brown;
         /* 相对定位  要有移动数值*/
        position: relative;
        top: -20px;
      
    }
    .tu{
        /* height: 50px; */
        background-color: rgb(219, 219, 10);
        border: 1px dashed rgb(219, 219, 10);
        /* 相对定位 */
        position: relative;
        left: 50px;
    }
    .sui{
        background-color: rgb(22, 224, 93);
        border: 1px dashed rgb(22, 224, 93);
         /* 相对定位 */
         position: relative;
        left: -50px;
    }
</style>
<body>
    <div id="id">
        <div class="onw"> <main></main></div>
        <div class="tu"></div>
        <div class="sui"></div>
    </div>
</body>
</html>